Fixed multiple script addition bug