fix issue with undefined template when upgrading from pre 2.0