fixes issues on migration and widget
Merge pull request #13 from kronoscode/master

Fixed issues on migration and widget.