fixes #1337