Fix eos detection after device re-init