some fixes for sets