Fix list_by_context for plan model