fix error reference