Fixed some problems with the Sets.