Corrected bug of wrong plan id