Fixes #245.