fixing makedate()