fixes on passing datagrid parameters to scripts