this fixes #362