Fix empty set error