Bug fix in 'list all users'

This will fix a bug where new users aren't listed and the last active user is repeated in the list.