fixes #322