Handling of zero division error