fix problem reported by David Hagen in ML #1117