Fix parse attachment files issues.