fix header scanner bug