Fix effects not being removed when they expire.