Fix: global name 'users' is not defined