remove a piece of code that was overwriting statusbar without any checks