second attempt to fix the header bug