Fixing conversion issue from/to hexadecimal colors