Fix bug with resizing on change parity