Fixed Yii2 issues