Fixed failed next()