minor fix for 2 types of infinities