this fixes #323