Fix bug with flipped representations
0.5.0