Fix division by zero issue (#3)