Fixed clearing link tables when updating rows.