bugfix patch: taking sizeof() of a non-static member in static function