Fixes the bottom bar not being hidden sometimes.