Fixing statusbar behaviour