Fixes #343.