this fixes #345