Fixes regression in #944