The OP has clarified that the problem is shifting to the smaller cogs (upshifting). That is what is typically caused by cable drag, and the easiest way to diagnose is to disconnect the cable completely and then see if the derailleur shifts to the small cog (outer limit correctly set) when you push it in manually to the next cog and then release.