plan bug fix