Hi, I'm going to install electric components on my Niji Bike from the early 80s, so as a first step, I took it apart in order to clean it. However, during this process, the gear (on a Shimano RS system) recieving the chain from the pedals, was feeding it and the other gear, vice versa. So I flipped the chain, only to get these strange knots, I was hoping someone could tell me how to resolve this issue:
Close-up of the chain knots: