Selection of bad events