fixes issues on migration and widget