fixes #689