empty planname bug fix