Fixed yii2-beta compatibility