Fixed error causing not be able to create hazard