fixed bug in script injector