Fix condition to get animations