Bug fixes in camera and debugview