fixes #297