Fix bug relating to site origin date