troubleshooting why goodbad script is duplicated