Fix for latest yii2 version