perf: Fix inherit vs. context rotation bug