Fixed bugs in camera and triangle as well as identified a new bug in triangle