fix bug with not setting date object for folders