Fixed issue #124 (patch by Keith Hughitt).