fix double path return