Version 1.8

Prevent returning infinity as an answer.