A904LA transmission issue

You mentioned cleaning sludge from the area so I added the comment about leaks coming from this cable. With better pictures of that cable we might get a better idea of its condition. A leaking cable is not a cause of rough shifts. I would not blame the cable for that. Your "rough" shift may be normal especially if someone has installed a "shift kit" in it, a popular aid to better performance.