dissambly: handle EOF correctly