Hex color parsing fix

Fixed a small problem in hex color parsing.