Fix problem with user level calculation