Fix validate script