Fixed StateID. static block seems to run in a separate thread.