Fixed bug in setting start date