fix for https://github.com/jeremyevans/sequel/issues/715
changes