Fixes Omorfi to work also in generation mode