Fix mongo query