fixes #326