Fix tupfile