another try at bug fix for plan date