fixed issue with is.finite