Fix animation bug on duplicate a class