fixed issue with infinite points