fix category graphs and add key to items