Fix self-created issue when path is specified.