Fixes issue #264
Merge pull request #266 from couchbaselabs/issue-264

Fixes #264