fix validate issue