Fix issue with navigation bar showing incorrectly.