Fix error commented in https://github.com/yiisoft/yii2/pull/1622#issuecomment-31207226