Inverting an if expression to occupy less space
Fixing way the animation view was moving frames around, should avoid a crash