Corrected the program