cool fixed the bug when nav appears