fixing makeDate()