fixed division by zero