Repaired division per zero crash