Fixes  a bug introduced in c2abf650e8