fix footer in plan file