fix header closures