Fixes #249.