It is not a bug.
It means that you have created a global variable call PromptButton. So what is a token also become a global variable.
So what happens is that PromptButton which is a token, has also become global variable instead.
So it is better to ensure that a variable name is not name after a token.