fixes to makeProjectionMatrix