I understand the scenario, but in your case, the distance between the static devices is too short. Moving devices can always communicate directly, and they chose to do so.
Right now the metric for switching is better LQI. You can change that to better RSSI, for example. This will probably help some. But you are basically trying to make the network worse overall. It selects a route with minimum number of hops, and better chance of delivery. You are making it go though a lot of routers, which is generally worse.