fixes #5825;