Correct assert added to dump program.
(cherry picked from commit efe145a7453e4208f032816ce3f80e9fb6b0e4ee)