Baby sleeping with butt in the air??

B

Does anyone else’s baby sleep with their butt in the air and their legs curled underneath kind of like a frog? I keep fixing her legs and she keeps putting them back under her 😳 Her doctor said to discourage her from sleeping with her legs curled in a fetal position so I don’t know if this is any better. Is this sleeping position bad for her legs?? 😩