Fix to issue #323

See for more details:
https://github.com/markrendle/Simple.Data/issues/323