Problem with find right path in grid graph

Hello, my problem is when i find a path, it always find it from bottom.
Here is image:


And red arrows is what path(approximate) i want.
Is it possible to get this path?