patched a core bug in app registration