fix abs in x/y magnitude decider