fixes #1388