You can open the 'Behavior' list and right click on the problematic Perform motion and select 'Align Perform Direction'. This will force the motion to continue on it's initial trajectory. However, if the Perform motion suddenly changed direction midway through (like doing a backflip), then the orientation needs to be fixed on the root motion.