fix bugs related with date time expression