fix inject script problem