correct error in plan