fix bouncing navbar issue