S550 Mustang Window Issue - Possible Fix For Window Not Closing All The Way

2015+ S550 Mustang power window wasn’t going all the way up in the closed position. Door would be closed, but window would still be maybe 1/4 inch or so down and leak water during rain. Tried re-indexing the window, didn’t work. Was going to replace the window motor and regulator but out of the blue, the window started going up and down all on its own between the slightly down ‘door open’ and fully up ‘door closed’ positions. Found a white wire in the power window connector was loose on the male side. I could move the wire and thus the pin for that connector in and out. I figured maybe it wasn’t allowing for a consistent connection? Cut the wire loom back a bit and pushed the white wire into the connector more and plugged it back in. Opened and closed the door a few more times and now it works good. Easy free potential fix.