fix str and int mix in validate metadata script