Fix for hidden state of the status bar being ignored

Fixes #44