fix to users query