fixed NullPointerException at camera when changing screen orientation