fix broken header bug