corrected the fetching of one item for query