[Bugfix] embedded records mixin: key variable needed to be declared