Some fixes to sending Scripts