fixed bug in gathering of bindings