fixed bug with paths and spaces