fixes #1381