fixes #391