fixes #682

fixes #682