fixed query for mongodb 2.6