fix mongo query