Fixed compatibility issues with Yii2-beta