fix bug for # -> h1 ...