Fix slim 2.0 Backward incompatible syntax change
Merge pull request #1174 from WaYdotNET/fix-slim2

Fix slim 2.0 Backward incompatible syntax change