fix bad output