After I got the ending 1, I was somehow in Marie's place and i embraced Sam. That's how i got the 3rd ending