fixes #381