Fix trigonometry issue (copy and paste...)