fixed a bug in the user class