Fix : wire inversion and button attribution