Fix issue when dump all records