fix agent library failed to init: instrument