Fix colour flipping