Fixed output

In the end of all output, there was a line that said "None". Now it's fixed.