Make sure outdated SIDs are cleaned properly in pagination