added workaround for the unstoppable counter
added norace to variables