Fixed variable name in delete_field function