Corrected a small logic bug inside target validator