Lowercase date headers
Fix memory leak