I never encounter this bug before. It might be a problem with your code, like do you remember to reset the variable after use?