fixes #1390