fixed animation issues