Fixed hex parsing