[BUG] Fix erratic dump command creation