[bugfix] global typedef