fixes #399