How to Solve Vacuum Leak on Montero

I've been dealing with check engine light P0107 since June and finally solved it by replacing the small hoses