fixed small registration bug