this fixes #364