fixes #749