fix regression of recent commit 4b7bbe04eb [sf #540]