fixes #1549