Fix output to command line