Fixed checkCallingPermission() problem