fixes #291