fixed to reset dump flag