fixed seg fault in assignFieldNames()
fixed seg fault in assignFieldNames()