fix a problem when loading animation, some buttons remain disabled