fix regression of #378