Fixes #270.