Fix bugs in bindings in click and scope nesting