fixed registration issue