Fixed an issue with class Animation