oh nevermind. Turns out it was a glitch where I invited Linda to the dungeon, then accidentally exits without freeing her, so she somehow still becomes my companion in the science lab. Also she's always naked now, so yay.
as for my original matter, I fixed it by visiting the dungeon again and freeing Linda, she got back to her usual spot, without any clothes on.