fixed program error