fixed binding issue with dates