Fix a regression introduced when inlining