fixed issue with script loading twice and game speeding up