fix checkbox which didn't fire events in some cases