fix set_previous_next
Merge pull request #137 from seuros/patch-2

fix set_previous_next