Fixes regression introduced by #1333