fixes bug in hex2rgb