Fixing bug in file export function of EnhancedSearchViewController