fixed program collapse