fix derailed output