fix bug on user creation