patch bug needInstance (static/this->)