fixed bug in users controller