fixes #1380