user() undefined bugfix