fix for next()

Signed-off-by: Sean Wesenberg <wookets@gmail.com>