fix bug where toolbar stopped responding