Fix bug in perspective matrix.