If you bought this new and it's less then 2 years old, you really shouldn't have taken it apart. If it's used then fair dos. But don't expect it to go back together again.
Put it this way, I've exchanged "one or two" m770 and M970 shifters under warranty in my lifetime for they symptoms you describe. Shimano are always cool about it.
Completed: 94 Stumpjumper w. M733; ; 92 Dave Yates 731 ; 97 Parkpre Pro-Elite ; Pace RC200 F6 ; Pace RC300; 82 Gios Super Record ; 97-8 De Rosa Giro D´Italia; ; Banani SPX Track bike ; 89 Alan/Mavic Cross Bike ; 05 Focus Cross Team ; 90 Look MI-80 all-Mavic ; 12 Focus Izalco Team/custom build ; 11 Focus Thunder Custom build
Projects : , Brouwer all-Mavic
Stripped : Pace RC303
Gone : GT Karakoram
Stayed in the family: Kuota Kharma, 04 Stumpjumper FSR
Ceased to be : Dynatech MT3, killed by corroded seatstays.