fixes #issue-3865