Fixed MathHelper crash