minor fixes to camera calculations