fix dump script