Fixed compile issue after template refactoring.