fixed several viewing matrix problems.