fix handle partial path panic bug