Fix nextset

It may solve #157