Fixed rocket loop NaN error