Fixes #4621

Shogun forgotten in time.
Merge pull request #4674 from Jarcolr/diction

Fixes #4621