Fix get file path bug