fixed a bug causing some events chrash on minimization
killed last known critical bug crashing some minimizations