Fix a shape mismatch error