Bug found when generating list output