fixes #1183