fix inject object failed bug.