set, dictionary and list bug fix