Fixed bug with converting RGB to HEX