Fix mini bucket simulation cleanup logic.