fixed animation bug (divide by zero / uncatched exception)