fixed inheritance problem with small tags inside heading tags