fixed some animation issues