Fixed Camera Crash Problem and removed a few warnings