small but important bugfix for the toolbar