fix for rgbToHexString