bug with updating plan