Fixed list generation error