fix problem with User object