fix regression from commit 215b0faf