Fix wire connections