fixes #341