Merge pull request #11 from gerbal/master

Fixed occasional errors caused by hex values less than 6 characters