fixes #347