Fixed bugs with the new camera interface.