fix incorrect sin/cos for x & y