Fix the return data of delete and query API.