Fixed an undefined bug for HW scenario