Fix an error in planter.