Fix navbar expanding (2)

Attempt to fix navbar expanding in certain circumstances