fix to problem #4025 for --dump