Exeption of division by zero fixed