Fix bug in custom_statusbar