Fix error code definition