Fix =/== bug in read_internal