fix navbar bug