fixes #395