small fix of static function order