fixes crash is sets is empty