change the way to dump, another bug appeared