How to fix the program