workarounding template bug