backport bugfix from https://github.com/devel0/netcore-sci/commit/2eeccde549602068732313287ea9d8e22f8cadbf
backport bugfix from https://github.com/devel0/netcore-sci/commit/2eeccde549602068732313287ea9d8e22f8cadbf

devel0/SearchAThing.Sci,devel0/SearchAThing.Sci,SearchAThing-old1/SearchAThing.Sci,SearchAThing-old1/SearchAThing.Sci