Fixed functionality of navbar collapse