Fixed NullPointerException in PathManager