Regenerates data to prevent impossible situations