Fixed problems with CustomStatusBar.
Fixed a recently introduced status bar bug.