How to sync up fork repo with appium master after merged PR?

I recently made a PR
It was merged into the Appium Master. That’s good but when I check back to my forked repo(

It is saying that I am 3 commits ahead.

1 commit is the code that already merges with Appium master(It shouldn’t be here?)
2 commits came after I click “Sync fork”

How should I deal with this? How do you normally deal with this and prevent this from happening again?

Looks like a simple good would do