Fixes #166.