Fixing program change off-by-one error;