Fix hex->bin bug.