fixes #1386