Fixed getUsersByFields method