fixed bug where lowercase hex would silently return the wrong thing