fix bug that wont add paths as array