fix In-app registration issue