fix validate script