fix for https://github.com/balderdashy/waterline/issues/188

fix for https://github.com/balderdashy/waterline/issues/188