If this code is being ran outside of the object, where exactly does it exist / how is it being called? If you can reproduce this behavior in a new project, please include step-by-step reproduction steps, including code classes and other assets being added/created, and/or provide a sample project showing the issue.