Bug fixed

Occasional crash happens after removing all users. This is fixed.