Script parsing fix