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