fixes #298