Fixed issue #749. Reported by Bryan Hunt.