refactor _.find
fix TypeError

[#77361830]