fix bug in makeList