fixed bug at new registration