fixed the display bug with collapsed navbar