During the middle of my ride on saturday my chain came off the top or my cassette. I was able to get the chain back on but once i stopped peddaling the top of my chain would become slack. I took my cassette off and made sure everything was ok there and it seems fine. I checked the rear der and everything looks good there. I have no idea what went wrong and i can not ride it like this. Any suggestions?