WYCS: bug fix for creating lists