fixed nasty bug overlapping task scripts