rm call to next
fix signature
Merge pull request #270 from matiu/bug/next

rm call to next