this fixes #305