this fixes #390