Fixes regression in #968