Fixes for issue #78.
Merge branch 'master' of https://github.com/yiisoft/yii2