hot fix for 'this' scope inside nestedFn