fixing rendering of nested contexts to include keys defined in the parent context