Fixed bug where output,overflow and issues were accumulated backwards