Fixed bug when date was cleared when clicking on same date twice