Fixed animation bug