Fix for Yii core