this fixes #366