Fix setStatic() method