Fixed insert method pointer assumption (Java did not like my trick...)