fix issue with download link not returning dates. fix syntax error