fixes #1396