flaw correction