Fix truncate table when fetch