When you try to make contours, you first select a layer. Then you click contours.
However, in this dialog the default selection is not always the layer you selected.
It seems that always first layer in the list is selected.
Use the in Project Explorer selected layer as the active layer for contouring.