fixed 2 issues related to UI date selection bugs.