TS: Fixed bug with animations sometimes playing backward