fixed a bug where sometimes icons wouldn't be correctly hidden
