Fix coherence problems in the given paragraph.
He always flatly denied them. Learning that formal investigations were opened, he resigned as minister.
He always flatly denied them. However, learning that formal investigations were opened, he resigned as minister.