Fix bad key in context sorting.