fix for header undefined