fixes the problem of dump