fixes #6046
Merge pull request #6081 from Walter0o/magical_smes_dev

fixes #6046