Fixed call to sin/cos.