Fixed the aborting of the state estimation in target-pred.