fix possible stacking bug at the top of the screen