fixes #1391