Fixed a bug where get_strategy() cause crash

Detail:
1. return object of local shared_ptr instead of reference
2. set ids for strategies and add logs to help future debug