Fix admin export, clear templates