fix bug with path