fixes #5745;