Fix: add missing "idup" and linefeed