fixed static context issue

tested 10,000 times