gear shifting after changing cassette
As I stated in my comment,you need to rearrange your limit settings after switching the cassette, you can have a look at this video, if the limits are not set correctly the chain could either fall off the cassette or not being able to reach the smaller/bigger cog.