fixed issue with datepickers