Fix bug: path is null