fix bug with path vectorization