A bug in User class fixed