Fix devision with zero in result log