header bug fixing