fixes #863