fix keys extracting from reflections