fixed script call bug