Welcome to race conditions
Imagine you are about to eat a piece of cake, your fork is going closer and closer to your mouth, when suddenly, you are called and you switch your attention to somewhere else for a few seconds. Then when you are back on track, you realise a kid has eaten your cake. Damn