fixes #1373