Bug Fix: Corrected the value displayed when the program terminates