Fixed logic template loading