fixing bug with path