bugfixes to navigation bar