Fix parity size calculation