Fixed issue with getting a deprecated script error