Fix the path which cause socket hangup error