fixes #1399