Fix regression introduced by commit 7b1e97f