Fixing scope bug with users

Fixing scope bug with users