Fixed bug in set.