next() fix