fix variables conflict

Change-Id: I8fcb150b4a0915377d342598873b154925b6eaec
Reviewed-on: http://review.couchbase.org/40229
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>