bug fix in hex color serialization