minor fixes in plan_from_actions()