Fix a bug concerning expired items deletion