Fix for random set generator