fixes #578