Fix zero-division thing.