Virtual template functions fix.