bugfix for too many header panic