fix for loop and root window bindings