automated fix permissions on migration