Fixed overflow of the output