Fix broken global variables in PublicHD