Fixed bug for adding generic scripts