minor bug fix in app registration