minor bug in header array