fixes #1280