fix api access for app register.