getallheaders bugfix