Fixes the incorrect counts