this fixes #325