fixes #246