Fix clear epg script (issue #4418)