core: bug fixing in findParentForScopes function
ArrowFunction this: using variable instead of .bind

This will fixed #1