In another version, this transformation happens after the erroneous hymns are rectified and the son is called Ila. According to a variant, Shraddha wished for a daughter; Vashistha heeded her wish while performing the sacrifice and thus, a daughter was born. However, Manu desired a son so Vashistha appealed to Vishnu to change the gender of his daughter.
Manu
Vishnu