Fix to get the logical key to ecore key variable