registration bug fixed