date entry bug fix