Fixed "Invalid key to 'next'" error.