fixes #6050
fixing failing unit test