Workaround for yii/yii2#632