undeclared static property fix