Fix attach files extension problem