correcting bug in header and footer loaders