Fix auto-opening up templates