fix script lock