fixes #1385