Fixed Error

Fixed an error which prevented the program from outputting its result.