Regression in 0.7.4.rc1

Fixes the regression from github issue #2452.