Fixes after upgrading Yii version