Fix passing in startpoint as function.

Fixes problem which made it impossible to re-set the startpoint if it was initialized as a function.

Also, fixes error on initial page load from startpoint function.