I have replaced a couple window regulators on a 06 Jeep Liberty, usually when I have done this its because the window has fallen down.

This time its different. Window goes up and down but stutters. Took door panel off and hit window button and the screwed wire came up between the door frame and window.

Is this something that means the whole regulator/motor assembly needs to be replaced again, or did some attaching hardware come undone?

Its the front passenger window.