Fixed errors in camera class