#656 copy schedule when editing it, so that edited schedule won’t affect definition’s schedule