Fixed bugs with navbar resizing.