fix inserting script.