fix interpolation of the last function value
Authored by: rmottola 2011-10-25
Parent: [r288]
Child: [r290]