the logic of removing the prefix should not be executed when isPath=TRUE. close #73