I wanted to let you know that I have replaced my previous SRAM cassette with a Shimano CS-HG50 9 speed and it fixed my shifting problems.
I guess the SRAM was worn out and I couldn't tell by looking at it.
As always, thank you everybody for all your help