fixed registration context error