fixed registration thing