fix bug with collapsed navbar