fixes #897