fix #1117
Merge pull request #1119 from WaYdotNET/fixslim

fix #1117