fixes #1367