nav bar close issue fix