You don't have to fix anything.. it's not your duty. It's up to them. I think you can still be friends with both, however if one of them makes you choose between the two, I'd say cut off contacts with him/her. You need to feel free to hang out with whoever you want.