fixed key lookup in definition creation