fix error path