fix stockValidation problem