fix static function call