This is Genesis 8:4-5:
This doesn't appear to be a real problem. The ark could rest upon a mountain while the mountain was still underwater, and therefore, weeks before it was seen.
It is however slightly vexing that the passage should say the ark rested on mountains, plural. But I suppose that could be an imprecise way of saying "on a mountainous area".