fix animation issues.