Fixed some animation issues.