fix type error in build_result