fix camera and some errors