Fix Illegal string offset 'hex'