fix error domain code