fixed wrong result from insertInListNoDup