plan date bug fix