we have 3 ways
1- marja who in life was aalam from marja who died, in this sitvation you have to change taqleed from die to live
2- marja who die was aalam from live, in this place you cant change the taqleed
3- both of them same in this place also you can change the taqleed