small logic defect