found a bug in the inflexion point merge code