fixes #852