fixes bug with navbar toggle