fix for hex2rgb function