fix error with plan id