Corrections to the view matrix generation