fixed mongodb query