fixed registration again