Fixed checkProgramsOverlap completely