fix regression with older versions of babel