fixing eval for end of array for range