Fixing camera permission check.