fix: static variable value always incremented

Thus, we eventually tried to read/write protected memory.