[core] fix on find_context