Fix set name detection