modified save_program error