fixes #1115