fixed a serialization bug

You need at least one bit to represent colors, even if there are zero
or one colors.