fixes #1392