this fixes #297