fix plans bug