fixes #4781