There's a weird loop right after the Birthday Party when you go to check the rooms (specifically if you tell Tori to leave the bathroom). If you go to Lily's Room, you'll immediately get the wife sex scene after, then you'll be back in the living room. Then you can go back to Lily's Room and get the same conversation about the dress again, then the sex scene with the wife. Sometimes Tori pops up, but the loop stays until you go to the bathroom to take a shower. Sometimes you immediately go to see the professor right after the sex scene. It's really weird, and I don't know what causes what.