Fixed crash on PathForFile()