You may want to try to change the order of the UE script in the "Scripted Record" screen Customization -> Scripting -> Scripted Records. Not sure that will do it for you, but it's worth a try. Put the UE that you want to execute first on the top of the list.