solved bug registration