fixed iteration in list_users