ox: Fix "wrong-type-argument" error in template insertion