Fixed registration error code.