correctly return 1 document if only 1 returned