Fixed bug with mongo not quring for more data