patched getsubtag() to fix a bug