fixed crash when camera isn't available