Fixed a problem that caused an extra charcter to be printed.