fix viewPath' bug, improve code

unnecessary, it is equal to `fn.call(options.scope, options)`