fixes #1286