fixed 'division by zero'