Fixed path string corruption bug