fixed hazard metadata getting logic