fix error on no nextKey