Fixed problem with animations