Fix for nested list output