fixed the FileInPath compiling error