fix bug in makeSet