What I see of your code and your description I will guess the code never loops back for a second check.