fix regression with missing key in template