fixed goto and pc in error and final routing