this fixes an issue where some buttons are not triggered correctly