Fixing invalid path bug.