fix bug with path variable