fixed registration bug
fixed registration bug