fix bug on toolbar dropdowns