fixed hideous bug in find empty header