fix double date bug