fixes #1110