Fix maxspeed cast