fixed registration problems