Fix an exception when deserialising colours