Support slim
Fix deprecation warning