Fix bug "Undefined variable: path"