fix player speed trig problem