fixed send script condition