Fixing bug in apiv2 examples