Fixed strange crash and camera bug