fixes #345