Fixes template reference