Fix output call in dump function