fixed bug in users helper [ci skip]