Trying to fix script error