fixes #814