Finding regulatory elements fixing error layouts