Couple of fixes for valueByPoint method