fix issue #671 (regression)