I also had the same problem with my Jezebel, she favored me and then was briefly hospitalized last month, after she came home, of course I was the one giving the meds, and I became the enemy. She favored my husband for that time (and shortly before that too).
It took a little bribery with favorite treats, but now she is back with mommy, still gets a little crabby with hubby now and then, but we can both handle her now.
I am starting to believe with birds it's a day to day love affair.....
I'm sure this will work out for you, it takes time. Good luck.
Jezebel, White Capped Pionus
Lu, Hahn's Macaw
Bubbles, Toy poodle