fixes #5239;