Fix a bug introduced by commit 43cde18ee0640605952029190450ae168cead6f5