fix perspective camera math