insert_field bugfixes