Fixed an issue with redeclared static variable.