Fixed bug in camera creation.