Fixed a bug where the status bar would hide too early