Making ci_to_errsize more stable