[Fix] Make sure both menubar and navigation bar are not hidden.

Closes #781