Bug fixing
Parity check fixed