Fixes issue #269.
Merge pull request #270 from couchbaselabs/issue-269

Fixes issue #269.