io.nds: fixed minor bugs