fixed bug in detection of Hieroglyphs