Fix insert order in update_product_versions()