Correcting a bug in the count of scopes when the user provided a table_items implementation inside its controller