Fix bug whonext did nil due to curly missing.