Fixed animation bug.