Fixed some notices in modify.