diff --git a/tools/update_versions b/tools/update_versions
index 5a9d578522..3a8a0e8d44 100755
--- a/tools/update_versions
+++ b/tools/update_versions
@@ -460,9 +460,9 @@ function process_version($a, $v, $p) {
" ".$app->name."\n".
" ".parse_version($v)."\n"
;
- if (strlen($v->api_version)) {
+ if (strlen($vers->api_version)) {
$xml .=
- " $api_version\n"
+ " $vers->api_version\n"
;
}
foreach ($fds as $fd) {