fixes #387