fix dump code