Fix regression introduced in #717