fix attribute bindings