Fix build encoding issue
Fix animation unregistering method