fix bug with extra '_p' on tag construction