Can't pass custom attributes to overriden templates