this fixes #332