next nil fix