Fixed solution to check reachable