fix error type def.