fixes #389