Script fixed