Bug fix. Set body when maintype is text