This sounds like its dependent on order of binding evalutation, which is completely undefined.  For this to be reliable changing the edit mode will have to also have to change the edited profile.