Fixes #2019 thanks for the report, fixing the regression