Fixing non-integer name_field bug (Closes #262)